<?php
declare (strict_types=1);

namespace app\api\validate;

use think\Validate;

class MemberAddressValidate extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'id|ID'         => 'integer',
        'true_name|收货人' => 'require|max:15',
        'mobile|联系电话'   => 'require|mobile',
        'area|所在地区'     => 'require|max:100',
        'street|所在街道'   => 'require|max:100',
        'address|详细地址'  => 'require|max:100',
        'status|状态'     => 'require|in:1,2',
    ];

}
